Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODShape


Copy

The Copy method creates a new shape object that is a copy of this shape.

ODShape Copy ();
return value
A reference to the newly created shape.
DISCUSSION
The new shape does not share any data with this shape; therefore, you can modify each of the shapes independently. This method automatically deletes the new shape if the copy operation fails.

This method initializes the reference count of the returned shape. When you have finished using that shape, you should call its Release method.

EXCEPTIONS
kODErrOutOfMemory
There is not enough memory to copy this shape.
SEE ALSO
The ODShape::CopyFrom method (page 635).
Listing 2-14 on page 61 in OpenDoc Cookbook.
Table 11-1 on page 466 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help